﻿namespace VIT.DataTransferObjects.Presentation
{
    using System;

    [Serializable]
    public class ArticlesWithViewsDto
    {
        public string Title { get; set; }
        public string Description { get; set; }
        public int Views { get; set; }
        public int Likes { get; set; }
        public int UnLikes { get; set; }
        public int VoteRate { get; set; }
        public int VoteNumber { get; set; }
        public int Vote
        { 
            get {
                return this.VoteNumber == 0 ? 4 : this.VoteRate / this.VoteNumber;
            } 
        }
        public int Id { get; set; }
    }
}
